// 20 产品管理 30
export default {
  path: '/productmanage',
  name: 'productmanage',
  icon: 'shopping',
  authority: ['business:antd:prod'],
  routes: [
    {
      path: '/productmanage/defisearch',
      name: 'defisearch',
      authority: ['cs:prod:query'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/productmanage/defisearch',
          redirect: '/productmanage/defisearch/index',
        },
        {
          path: '/productmanage/defisearch/index',
          component: './ProductManage/Definition/Index',
        },
      ],
    },
    {
      path: '/productmanage/definition',
      name: 'definition',
      authority: ['mgr:prod:defi'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/productmanage/definition',
          redirect: '/productmanage/definition/index',
        },
        {
          path: '/productmanage/definition/index',
          component: './ProductManage/Definition/Index',
        },
        {
          path: '/productmanage/definition/add',
          name: 'add',
          component: './ProductManage/Definition/AddUpdate',
        },
        {
          path: '/productmanage/definition/update',
          name: 'update',
          component: './ProductManage/Definition/AddUpdate',
        },
      ],
    },
    {
      path: '/productmanage/pricesearch',
      name: 'pricesearch',
      authority: ['cs:prod:price'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/productmanage/pricesearch',
          redirect: '/productmanage/pricesearch/index',
        },
        {
          path: '/productmanage/pricesearch/index',
          component: './ProductManage/Pricing/Index',
        },
        {
          path: '/productmanage/pricesearch/detail',
          name: 'detail',
          component: './ProductManage/Pricing/Speicf',
        },
      ],
    },
    {
      path: '/productmanage/pricing',
      name: 'pricing',
      authority: ['mgr:prod:price'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/productmanage/pricing',
          redirect: '/productmanage/pricing/index',
        },
        {
          path: '/productmanage/pricing/index',
          component: './ProductManage/Pricing/Index',
        },
        {
          path: '/productmanage/pricing/add',
          name: 'add',
          component: './ProductManage/Pricing/AddUpdate',
        },
        {
          path: '/productmanage/pricing/update',
          name: 'update',
          component: './ProductManage/Pricing/AddUpdate',
        },
        {
          path: '/productmanage/pricing/speicf',
          name: 'speicf',
          component: './ProductManage/Pricing/Speicf',
        },
        {
          path: '/productmanage/pricing/detail',
          name: 'detail',
          component: './ProductManage/Pricing/Speicf',
        },
      ],
    },
  ],
};
